<template>
	<u-sticky bgColor="#fff">
		<u-tabs
			:list="tabList"
			:itemStyle="{ width: tabList.length === 2 ? '50%' : '', height: '80rpx' }"
			:activeStyle="{ color: '#f1be5d' }"
			lineColor="#f1be5d"
			:current="type"
			:lineWidth="lineWidth"
			@change="$emit('onTabsClick', $event)"
		></u-tabs>
	</u-sticky>
</template>

<script>
export default {
	props: {
		tabList: {
			default: [],
			type: Array
		},
		lineWidth: {
			type: Number,
			default: 20
		},
		type: {
			type: Number,
			default: 0
		}
	}
};
</script>

<style></style>
